<?php

class Framework_DB_Table_OwnerSites extends Framework_DB_Table_Common {

	public $tableName = 'OwnerSites';
	
    public function __construct($db) {
   		
   		// Columns
   		$this->col = array(
	   		// Primary Key
	        'idSite'  => array(
	           'type'     => 'integer',
	           'require'  => true
	        ),
	        
	   
	        'idSiteUser'  => array(
	           'type'     => 'integer',
	           'require'  => true
	        ),
	     
	        'siteName'      => array(
	           'type'     => 'varchar',
	           'size'     => 50,
	           
	           'qf_label' => 'Name of the Site: ',
	           'qf_type'  => 'text',
	           'qf_attrs'  => array(
	                'size' => 25,
	           )
	        ),
	      
	        'URL'      => array(
	           'type'     => 'varchar',
			   'size'     => 255,
			   
			   'qf_label' => 'Site URL: ',
	           'qf_type'  => 'text',
	           'qf_attrs'  => array(
	                'size' => 25,
	           )
	        ),
	        
	       'rssURL' => array(
	           'type'     => 'varchar',
	           'size'     => 255,
	           
	           'qf_label' => 'Site RSS Feed: ',
	           'qf_type'  => 'text',
	           'qf_attrs'  => array(
	                'size' => 25,
	           )
	        ),
	    );
	    
	    $this->auto_inc_col = 'idSite';
	    
	    // Indexes
	    $this->idx = array(
	    	'idSite'  =>  'primary'
	    );
   		
   		parent::__construct($db);
    }
   
}

?>